package jen.android.timecheckerwidget;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;

public class DBConnectHelper extends SQLiteOpenHelper {
	
	private String dbname = "";
	
	public DBConnectHelper(Context context){
		super(context, "inoutdatabase", null, 1);		
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		db.execSQL("create table inout( _id integer primary key autoincrement, data integer not null," +
					" intime integer, outtime integer);");
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		db.execSQL("DROP TABLE IF EXISTS inout");
		onCreate(db);
	}

}
